<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>Title</title>
</head>
<script src="__STATIC__/app/plugin/jquery-3.2.1.min.js"></script>
<body>

    <form method="post">
          <p>会员33333id:<input type="text" name="id" value="1"/> </p>
        <p><button type="submit">登录</button></p>
        <p><button type="button" onclick="window.location.href='{:url('login/wechat')}'">微信登录</button></p>
        <p><button type="button" onclick="logout_0()">退出</button></p>

    </form>
    <script>
        function logout_0() {
            $.ajax({
                url:"{:url('login/logout')}",
                success:function (res) {
                    if(res.success){
                        alert(res.message);
                        setTimeout("window.location.reload()",1500);
                    }
                }
            })
        }
    </script>
</body>
</html>